package org.neuedu.chapter06_0621.demo08;

public class TestNumber {
    public int getMaxNum(int[] arr) {
        if (arr != null) {
            int max = arr[0];
            for (int num : arr) {
                if (num > max) {
                    max = num;
                }
            }
            return max;
        }
        return -9999;
    }
}
